/*
 * User.java
 * classes : com.ruint.master.bean.User
 * @author ruint
 * V 1.0.0
 * Create at 2014-11-27 下午12:24:30
 */
package com.ruint.master.bean;

import com.ruint.core.bean.CorePreferencesDTO;

/**
 * com.ruint.master.bean.User
 * 
 * @author ruint <br/>
 *         create at 2014-11-27 下午12:24:30
 */
public class User extends CorePreferencesDTO<User> {

  private static final long serialVersionUID = 1L;

  private String u_id;
  private String u_name;
  private String phone;
  private String u_avatar;
  private String u_password;
  private String u_level;
  private String css_avatar;
  private String css_name;
  private String had_pay_pwd;

  /**
   * @return the had_pay_pwd
   */
  public String getHad_pay_pwd() {
    return had_pay_pwd;
  }

  /**
   * @param had_pay_pwd
   *          the had_pay_pwd to set
   */
  public void setHad_pay_pwd(String had_pay_pwd) {
    this.had_pay_pwd = had_pay_pwd;
  }

  public String getU_id() {
    return this.u_id;
  }

  public void setU_id(String u_id) {
    this.u_id = u_id;
  }

  public String getU_avatar() {
    return this.u_avatar;
  }

  public void setU_avatar(String u_avatar) {
    this.u_avatar = u_avatar;
  }

  public String getU_name() {
    return this.u_name;
  }

  public void setU_name(String u_name) {
    this.u_name = u_name;
  }

  public String getU_password() {
    return this.u_password;
  }

  public void setU_password(String u_password) {
    this.u_password = u_password;
  }

  public String getPhone() {
    return this.phone;
  }

  public void setPhone(String phone) {
    this.phone = phone;
  }

  @Override
  public boolean isSame(User old) {
    return u_id.equals(old.getU_id());
  }

  public String getU_level() {
    return this.u_level;
  }

  public void setU_level(String u_level) {
    this.u_level = u_level;
  }

  public String getCss_avatar() {
    return css_avatar;
  }

  public void setCss_avatar(String css_avatar) {
    this.css_avatar = css_avatar;
  }

  public String getCss_name() {
    return css_name;
  }

  public void setCss_name(String css_name) {
    this.css_name = css_name;
  }

  @Override
  public String toString() {
    return "User [u_id=" + u_id + ", u_name=" + u_name + ", phone=" + phone + ", u_avatar=" + u_avatar
        + ", u_password=" + u_password + ", u_level=" + u_level + ", css_avatar=" + css_avatar + ", css_name="
        + css_name + ", had_pay_pwd=" + had_pay_pwd + "]";
  }
}
